#include<cstring>
#include<cstdio>
int N=100010;
struct rec
{
	int x1,y1,x2,y2;
	bool friend operator<(rec a,rec b)
	{
		if(a.x2<b.x1&&a.y2<b.y1)return true;
		return false;
	}
}a[N];


